package com.yxl;

import com.spring.YxlApplicationContext;
import com.yxl.service.UserInterface;
import com.yxl.service.UserService;

/**
 * @Classname Test
 * @Description TODO
 * @Date 2023-04-01 16:05
 * @Created by yxl
 */
public class Test {

    public static void main(String[] args) {

        YxlApplicationContext applicationContext = new YxlApplicationContext(AppConfig.class);
        UserInterface userService = (UserInterface) applicationContext.getBean("userService");
        userService.test();
//        System.out.println(applicationContext.getBean("userService"));
//        System.out.println(applicationContext.getBean("userService"));
//        System.out.println(applicationContext.getBean("userService"));
//        System.out.println(applicationContext.getBean("orderService"));
//        System.out.println(applicationContext.getBean("orderService"));
    }
}
